directional derivative of the function